#include <boost/bimap.hpp>
#include <iostream>
#include <string>

int main()
{
    typedef boost::bimap<std::string, int> bimap;
    bimap persons;

    persons.insert(bimap::value_type("Euler",20));
    persons.insert(bimap::value_type("Gauss",21)); 
    persons.insert(bimap::value_type("Poincare",22));

    std::cout << persons.left.count("Poincare") << std::endl;
    std::cout << persons.right.count(22) << std::endl;
}